<?php 
/* SVN FILE: $Id$ */
/* Job Test cases generated on: 2009-11-20 07:39:33 : 1258702773*/
App::import('Model', 'Job');

class JobTestCase extends CakeTestCase {
	var $Job = null;
	var $fixtures = array('app.job', 'app.company', 'app.application');

	function startTest() {
		$this->Job =& ClassRegistry::init('Job');
	}

	function testJobInstance() {
		$this->assertTrue(is_a($this->Job, 'Job'));
	}

	function testJobFind() {
		$this->Job->recursive = -1;
		$results = $this->Job->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Job' => array(
			'id'  => 1,
			'title'  => 'Lorem ipsum dolor sit amet',
			'workplace'  => 'Lorem ipsum dolor sit amet',
			'requirement'  => 'Lorem ipsum dolor sit amet',
			'introduction'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'application_count'  => 1,
			'created'  => '2009-11-20 07:39:31',
			'modified'  => '2009-11-20 07:39:31',
			'expire_date'  => '2009-11-20 07:39:31',
			'expire_status'  => 1,
			'company_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>